﻿#region File Header
/***********************************************************************
 * Copyright © 2013 Beals Software
 * All Rights Reserved
************************************************************************
Author: Donald Beals
Date: February 4th, 2013
Description: TODO: Write a description of this file here.
****************************** Change Log ******************************
02.04.13 - Created initial file. (dbeals)
***********************************************************************/
#endregion

#region Using Statements

#endregion

namespace GameJolt.Requests
{
	/// <summary>
	/// 
	/// </summary>
	internal sealed class StringRequest : GenericRequestBase<string>
	{
		#region Constructors
		public StringRequest(string gameID, string privateKey, string url, params RequestParameter[] parameters)
			: base(gameID, privateKey)
		{
			this.UrlBase = url;
			foreach(var parameter in parameters)
				this.Parameters[parameter.Name] = parameter.Value;
		}
		#endregion

		#region Methods
		protected override string ProcessResponseData(string data)
		{
			if(Logging.IsEnabled)
				Logging.LogInformation(data);
			return data;
		}
		#endregion
	}
}
